package com.vitalfit.repository;

import com.vitalfit.model.entity.food.FoodOrder;
import org.jetbrains.annotations.NotNull;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface FoodOrderRepository extends JpaRepository<FoodOrder,Integer> {

    Page<FoodOrder> findAllByCustomerId(Integer customerId, Pageable pageable);
    @NotNull
    Page<FoodOrder> findAll(@NotNull Pageable pageable);
}
